package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信记录对象 jt_sms_log
 * 
 * @author Alan Zhang
 * @date 2025-03-31
 */
public class JtSmsLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 短信ID */
    private Long smsId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 国家码 */
    @Excel(name = "国家码")
    private Integer countryCode;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 手机验证码 */
    @Excel(name = "手机验证码")
    private String smsCode;

    /** 短信类型  1:注册  2:验证 */
    @Excel(name = "短信类型")
    private Integer type;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendDate;

    /** 发送短信返回码 */
    @Excel(name = "发送短信返回码")
    private String responseCode;

    /** 状态  1:有效  0：失效 */
    @Excel(name = "状态  1:有效  0：失效")
    private Integer status;

    public void setSmsId(Long smsId) 
    {
        this.smsId = smsId;
    }

    public Long getSmsId() 
    {
        return smsId;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setCountryCode(Integer countryCode)
    {
        this.countryCode = countryCode;
    }

    public Integer getCountryCode()
    {
        return countryCode;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setSmsCode(String smsCode)
    {
        this.smsCode = smsCode;
    }

    public String getSmsCode()
    {
        return smsCode;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setSendDate(Date sendDate) 
    {
        this.sendDate = sendDate;
    }

    public Date getSendDate() 
    {
        return sendDate;
    }

    public void setResponseCode(String responseCode) 
    {
        this.responseCode = responseCode;
    }

    public String getResponseCode() 
    {
        return responseCode;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("smsId", getSmsId())
            .append("userId", getUserId())
            .append("countryCode", getCountryCode())
            .append("phoneNumber", getPhoneNumber())
            .append("smsCode", getSmsCode())
            .append("type", getType())
            .append("sendDate", getSendDate())
            .append("responseCode", getResponseCode())
            .append("status", getStatus())
            .toString();
    }
}
